package com.hp.dao.impl;

import org.springframework.orm.hibernate5.HibernateTemplate;

import com.hp.dao.ShopCarDao;
import com.hp.entity.ShopCar;

public class ShopCarDaoImpl implements ShopCarDao {
	private HibernateTemplate hibernateTemplate;
	
	
	public void setHibernateTemplate(HibernateTemplate hibernateTemplate) {
		this.hibernateTemplate = hibernateTemplate;
	}

	@Override
	public void insertShopCar(ShopCar shopcar) {
		hibernateTemplate.save(shopcar);

	}

	@Override
	public void updateShopCar(ShopCar shopcar) {
		hibernateTemplate.update(shopcar);
	}

}
